package com.ykdl.member.kid.models;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

import net.wxxr.http.interfaces.IJsonParser;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;
import com.ykdl.member.kid.beans.ExtraDataBean;
import com.ykdl.member.kid.beans.GroupsBean;
import com.ykdl.member.kid.beans.Listinfobean;
import com.ykdl.member.kid.beans.ProfileBean;
import com.ykdl.member.kid.beans.TopicAndPostBean;
import com.ykdl.member.kid.beans.UserActorBean;

public class TopicBean implements Serializable ,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = -1097652873199189832L;
	private String topic_id ;
	private String source_id;
	private String post_actor_display_name;
	private String title;
	private String post_time;
	private String view_count;
	private String reply_count;
	private String source;
	private String is_anonymous ;
	private int digest_level ;//精华级别,1~3
	private int display_order ;//#>0为置顶,<0不显示,==0正常   -1为回收站   -2待审核 -3为被忽略
	private boolean has_image ;
	private ExtraDataBean extra_data ;
	private PostActor post_actor ;
	private ArrayList<FileMetas> file_metas;
	private String likes_count ;
	private String favorites_count ;
	private boolean is_favorite ;
	private boolean is_like ;
	private Listinfobean group ;
	private String error ;
	private TopicAndPostBean answer = null;
	
	
	public TopicAndPostBean getAnswer() {
		return answer;
	}



	public String getTopic_id() {
		return topic_id;
	}



	public void setTopic_id(String topic_id) {
		this.topic_id = topic_id;
	}



	public String getSource_id() {
		return source_id;
	}



	public void setSource_id(String source_id) {
		this.source_id = source_id;
	}



	public String getPost_actor_display_name() {
		return post_actor_display_name;
	}



	public void setPost_actor_display_name(String post_actor_display_name) {
		this.post_actor_display_name = post_actor_display_name;
	}



	public String getTitle() {
		return title;
	}



	public void setTitle(String title) {
		this.title = title;
	}



	public String getPost_time() {
		return post_time;
	}



	public void setPost_time(String post_time) {
		this.post_time = post_time;
	}



	public String getView_count() {
		return view_count;
	}



	public void setView_count(String view_count) {
		this.view_count = view_count;
	}



	public String getReply_count() {
		return reply_count;
	}



	public void setReply_count(String reply_count) {
		this.reply_count = reply_count;
	}



	public String getSource() {
		return source;
	}



	public void setSource(String source) {
		this.source = source;
	}



	public String getIs_anonymous() {
		return is_anonymous;
	}



	public void setIs_anonymous(String is_anonymous) {
		this.is_anonymous = is_anonymous;
	}



	public int getDigest_level() {
		return digest_level;
	}



	public void setDigest_level(int digest_level) {
		this.digest_level = digest_level;
	}



	public int getDisplay_order() {
		return display_order;
	}



	public void setDisplay_order(int display_order) {
		this.display_order = display_order;
	}



	public boolean isHas_image() {
		return has_image;
	}



	public void setHas_image(boolean has_image) {
		this.has_image = has_image;
	}



	public ExtraDataBean getExtra_data() {
		return extra_data;
	}



	public void setExtra_data(ExtraDataBean extra_data) {
		this.extra_data = extra_data;
	}



	public PostActor getPost_actor() {
		return post_actor;
	}



	public void setPost_actor(PostActor post_actor) {
		this.post_actor = post_actor;
	}



	public ArrayList<FileMetas> getFile_metas() {
		return file_metas;
	}



	public void setFile_metas(ArrayList<FileMetas> file_metas) {
		this.file_metas = file_metas;
	}



	public String getLikes_count() {
		return likes_count;
	}



	public void setLikes_count(String likes_count) {
		this.likes_count = likes_count;
	}



	public String getFavorites_count() {
		return favorites_count;
	}



	public void setFavorites_count(String favorites_count) {
		this.favorites_count = favorites_count;
	}



	public boolean isIs_favorite() {
		return is_favorite;
	}



	public void setIs_favorite(boolean is_favorite) {
		this.is_favorite = is_favorite;
	}



	public boolean isIs_like() {
		return is_like;
	}



	public void setIs_like(boolean is_like) {
		this.is_like = is_like;
	}



	public Listinfobean getGroup() {
		return group;
	}



	public void setGroup(Listinfobean group) {
		this.group = group;
	}



	public String getError() {
		return error;
	}



	public void setError(String error) {
		this.error = error;
	}



	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, TopicBean.class);
		}
		return null;
	}

}
